#ifndef TSB_BASE_TYPES
#define TSB_BASE_TYPES
/*
* 
* @license	Apache License 2.0
* @author	Eugene Kuznetsov
*
*/

typedef unsigned short UInt8;
typedef signed short Int8;
typedef unsigned int UInt16;
typedef signed int Int16;
typedef unsigned long UInt32;
typedef signed long Int32;
typedef unsigned long long UInt64;
typedef signed long long Int64;

typedef char Chr;
typedef unsigned char UChr;

#define ToInt8(x) static_cast<Int8>(x)
#define ToUInt8(x) static_cast<UInt8>(x)
#define ToInt16(x) static_cast<Int16>(x)
#define ToUInt16(x) static_cast<UInt16>(x)
#define ToInt32(x) static_cast<Int32>(x)
#define ToUInt32(x) static_cast<UInt32>(x)

#endif
